<?php
ob_start();

header("HTTP/1.1 301 Moved Permanently");
header("location: http://magicube.ws/magicube/");
	
exit;
	
define('IN_FENGTOP', TRUE);
define("FENGTOP_DIR", str_replace("\\", '\\',dirname(__FILE__))."/");

if (isset($_GET['action'])) {
	include_once FENGTOP_DIR.'fengsso/index.php';
	exit;
}

include_once FENGTOP_DIR.'config/global.ini.php';
include_once FENGTOP_DIR.'source/plugin/sqlsafe.php';
require_once FENGTOP_DIR.'source/class/base.class.php';
require_once FENGTOP_DIR.'main.php';

$FengTopMain = new FengTopMain();
$FengTopMain->mainRun();
$FengTopMain->mainView();

//echo "<pre>";
//echo "Global:"; print_r($GLOBALS);
//echo "</pre>";
ob_end_flush(); 
?>